package week4.day319.demo1;

/**
 * @Package: week4.day319.demo1
 * @Author: yanjiali
 * @Created: 2024/3/19 16:00
 */
public class Pup extends Dog{

    private String name;

    private String colour;

    @Override
    public void eatBone() {
        System.out.println("小狗在添骨头");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    @Override
    public String toString() {
        return "姓名：" + this.name + ", "
                + "颜色：" + this.colour;
    }
}
